package com.barry.reference;

import java.lang.ref.PhantomReference;
import java.lang.ref.ReferenceQueue;

/**
 * 类功能描述：//TODO
 *
 * @author WangXueXing create at 18-11-29 下午9:16
 * @version 1.0.0
 */
public class PhantomReferenceTest {
    public static void main(String[] args) {
        ReferenceQueue queue = new ReferenceQueue();
        PhantomReference ref = new PhantomReference(new MyDate(), queue);
        System.gc();
    }
}
